<?php


namespace app\admin\controller;

use think\Db;
use think\Validate;

class Opinion extends News
{
    /**
     * 回复列表
     */
    public function opinion_list()
    {
        $p = input('p', 0);
        $size = input('size', 15);
        $start = $p * $size;
        $db = Db::name('opinion')->limit($start, $size)->order('id desc')->select();
        $sum = Db::name('opinion')->count('id');
        $this->returnMsg('1', '', ['list' => $db, 'sum' => $sum]);
    }
}